package com.valuegroup.smarttodo.data.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;

import java.io.Serializable;
import java.util.Date;

/**
 * 搜索历史
 */
@Entity
public class SearchHis implements Serializable {
    private static final long serialVersionUID = 3921737197562471168L;
    @Id(autoincrement = true)
    private Long id;
    private String searchKey;
    @NotNull
    private Date createdDt;
    @Generated(hash = 1081540772)
    public SearchHis(Long id, String searchKey, @NotNull Date createdDt) {
        this.id = id;
        this.searchKey = searchKey;
        this.createdDt = createdDt;
    }
    @Generated(hash = 1803926092)
    public SearchHis() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getSearchKey() {
        return this.searchKey;
    }
    public void setSearchKey(String searchKey) {
        this.searchKey = searchKey;
    }
    public Date getCreatedDt() {
        return this.createdDt;
    }
    public void setCreatedDt(Date createdDt) {
        this.createdDt = createdDt;
    }

}
